public class T {
    public static void main(String[] args) {
        int[] array = null;
        if (array == null){
            throw new NullPointerException("数组为null");
        }
    }
}
